package com.atguigu.mall.mallorder.dao;

import com.atguigu.mall.mallorder.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 *
 * @author Fuc
 * @email leftbear@gmail.com
 * @date 2020-10-21 16:12:27
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {
  /**
   * 修改订单状态
   *
   * @param orderSn
   * @param code
   * @param payType
   */
  void updateOrderStatus(
      @Param("orderSn") String orderSn,
      @Param("code") Integer code,
      @Param("payType") Integer payType);
}
